const querystring = require('querystring');

console.log(querystring.parse('name=zhufeng&age=18'))
//{ id: 1, name: 'zhangsan2' }